package com.ztorn.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ztorn.dtos.MyasnHdrDTO;
import com.ztorn.model.MyasnHdr;
import com.ztorn.model.MypktTrackevent;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AsnMapper extends BaseMapper<MyasnHdr> {

    List<MyasnHdrDTO> selectMyasnHdrList(@Param("orderNos") String orderNos, @Param("co") String co);

    void updateBatchState(@Param("orderNos") String orderNos, @Param("co") String co);

    void insertInventory(@Param("myasnHdrDTOList") List<MyasnHdrDTO> myasnHdrDTOList);

    void insertOstatExpLog(@Param("myasnHdrDTOList") List<MyasnHdrDTO> myasnHdrDTOList);

    void saveEvent(@Param("eventList") List<MypktTrackevent> eventList);

}
